package com.project.restaurant.user.feign;


import com.project.restaurant.common.api.ResponseResult;
import com.project.restaurant.thirdpart.mail.Mail;
import com.project.restaurant.common.feign.config.FeignConfig;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;


@FeignClient(value = "third-part",
        path = "/mail")
public interface MailService {

    @PostMapping(value = "/send/simpleMail")
    ResponseResult<Boolean> sendSimpleMail(@RequestBody Mail mail);
    

    @PostMapping(value = "/send/templateMail")
    ResponseResult<Boolean> sendTemplateMail(@RequestBody Mail mail);
}
